var _common = require('../common/common.js');
_common.init(); 
   
var Demo = {    
	init: function(){     
		this.log();     
		this.event();     
	},       
	log: function(){  
		console.log('it work ka啊')
	},
	event: function(){ 
		var that = this;
		$('button').click(function(){
			that.getData();
		})
	},  
	getData: function(){
		utils.getData('getData','demo',{name: 'test'},function(res){
			alert(res);
			if(res && res.data){
				var str = '<p>' + res.data + '</p>';
				$('.content').append(str);
			} 
		})
	}
}  

test => {return 'test'}

Demo.init();